We'll use a variable to store the user's current score. A variable is a word that stores a value.

  • Go to and drag out Integer Variable.
  • The word before the equals sign is the variable's name. Change the variable's name to score.
  • The number after the equals sign is the variable's value. Change the variable's value to 0.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("schoolhallway") sprite = codesters.Sprite("person8") stage.set_gravity(4) stage.disable_floor() sprite.set_gravity_off() sprite.go_to(0, -220)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)